package com.sgb.kjwl.model.entity.user;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;
import com.sgb.kjwl.model.entity.lease.PriceSetEntity;

import java.util.List;
//租赁设备发布和详情参数
public class AddDeviceEntity {

    private String id;
    private String firstCategoryNo;
    private String secondCategoryNo;
    private String firstCategoryName;
    private String secondCategoryName;
    private String brandName;//品牌名称
    private String brandNo;//品牌no
    private String modelName;//出厂型号
    private String priceUnitNo;//价格单位no
    private String priceUnitName;//价格单位名称
    private String rentalPrice;//租赁价格
    private List<PublicAttrEntity> attributeList;
    private String title;
    private String remark;//详细描述
    private List<String> pictures;//临时使用
    private String imgPath;//入参
    private String contactName;
    private String contactPhone;
    //    private String provinceName;
//    private String provinceNo;
//    private String cityName;
//    private String cityNo;
//    private String districtName;
//    private String districtNo;
    private String no;
    private String negotiable = "0";    //是否面议,1面议，0非面议
    private String supportTransport;//是否提供运输（1：是，2：否
    private String asideNum;//闲置数量  默认1
    private int identity;
//    private String taskAddr;
    //发布新增字段4个 2020-7-23
//    private String addressDetail;//地址详情
    private String serviceArea;//服务范围
//    private String latitude;//纬度
//    private String longitude;//经度
    //是否开具发票(0不需要，1需要)
    private String needInvoice;
    //发票类型（0普通发票，1专用发票）
    private String invoiceType;
    //税率
    private String tariff;
    //可工作开始时间
    private String workStartTime;
    //可工作结束时间
    private String workEndTime;
    private String customerServiceId = "";//客服id
    private String customerServiceName;//客服名称
    private String status;//0草稿，1 上架 2 下架 3 审核不过，4 审核中)
    private String departmentNo;//部门no,无传''
    private String departmentName = "";//部门名称
    private String updateUserNo = "";//更新者no
    private String hasOperator = "0";//是否自带操作员,0否，1是
    private String categoryType="2";    //出租类型：1机械， 2 设备，3车辆，4 房产，5土地，6工厂，7农机
    private String updateTime;//发布时间
    private String weixinFenXiangUrl;//微信分享专用Url前缀
    private String createCompanyName;//出租方企业
    private String createUserName;//出租方个人
    private LocationBean location = new LocationBean();

    private List<PriceSetEntity> priceList;//价格配置

    private List<VipPrice> maxPrices;//价格配置

    public List<VipPrice> getMaxPrices() {
        return maxPrices;
    }

    public void setMaxPrices(List<VipPrice> maxPrices) {
        this.maxPrices = maxPrices;
    }

    public String getWeixinFenXiangUrl() {
        return weixinFenXiangUrl;
    }

    public void setWeixinFenXiangUrl(String weixinFenXiangUrl) {
        this.weixinFenXiangUrl = weixinFenXiangUrl;
    }

    public String getCreateCompanyName() {
        return createCompanyName;
    }

    public void setCreateCompanyName(String createCompanyName) {
        this.createCompanyName = createCompanyName;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }


    public static class LocationBean {
        private String address;
        private String areaName;
        private String areaNo;
        private String cityName;
        private String cityNo;
        private String latitude;
        private String longitude;
        private String provinceName;
        private String provinceNo;

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getAreaName() {
            return areaName;
        }

        public void setAreaName(String areaName) {
            this.areaName = areaName;
        }

        public String getAreaNo() {
            return areaNo;
        }

        public void setAreaNo(String areaNo) {
            this.areaNo = areaNo;
        }

        public String getCityName() {
            return cityName;
        }

        public void setCityName(String cityName) {
            this.cityName = cityName;
        }

        public String getCityNo() {
            return cityNo;
        }

        public void setCityNo(String cityNo) {
            this.cityNo = cityNo;
        }

        public String getLatitude() {
            return latitude;
        }

        public void setLatitude(String latitude) {
            this.latitude = latitude;
        }

        public String getLongitude() {
            return longitude;
        }

        public void setLongitude(String longitude) {
            this.longitude = longitude;
        }

        public String getProvinceName() {
            return provinceName;
        }

        public void setProvinceName(String provinceName) {
            this.provinceName = provinceName;
        }

        public String getProvinceNo() {
            return provinceNo;
        }

        public void setProvinceNo(String provinceNo) {
            this.provinceNo = provinceNo;
        }
    }


    public static class AttributeListBean {
        private String attributeName;
        private String attributeNo;
        private String attributeVal;
        private String attributeValUnit;

        public String getAttributeName() {
            return attributeName;
        }

        public void setAttributeName(String attributeName) {
            this.attributeName = attributeName;
        }

        public String getAttributeNo() {
            return attributeNo;
        }

        public void setAttributeNo(String attributeNo) {
            this.attributeNo = attributeNo;
        }

        public String getAttributeVal() {
            return attributeVal;
        }

        public void setAttributeVal(String attributeVal) {
            this.attributeVal = attributeVal;
        }

        public String getAttributeValUnit() {
            return attributeValUnit;
        }

        public void setAttributeValUnit(String attributeValUnit) {
            this.attributeValUnit = attributeValUnit;
        }
    }


//    public String getAddressDetail() {
//        return TextUtils.isEmpty(addressDetail) ? "" : addressDetail;
//    }

    public String getServiceArea() {
        return TextUtils.isEmpty(serviceArea) ? "" : serviceArea;
    }


    public String getFirstCategoryName() {
        return TextUtils.isEmpty(firstCategoryName) ? "" : firstCategoryName;
    }

    public String getSecondCategoryName() {
        return TextUtils.isEmpty(secondCategoryName) ? "" : secondCategoryName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFirstCategoryNo() {
        return firstCategoryNo;
    }

    public void setFirstCategoryNo(String firstCategoryNo) {
        this.firstCategoryNo = firstCategoryNo;
    }

    public String getSecondCategoryNo() {
        return secondCategoryNo;
    }

    public void setSecondCategoryNo(String secondCategoryNo) {
        this.secondCategoryNo = secondCategoryNo;
    }

    public void setFirstCategoryName(String firstCategoryName) {
        this.firstCategoryName = firstCategoryName;
    }

    public void setSecondCategoryName(String secondCategoryName) {
        this.secondCategoryName = secondCategoryName;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getPriceUnitNo() {
        return priceUnitNo;
    }

    public void setPriceUnitNo(String priceUnitNo) {
        this.priceUnitNo = priceUnitNo;
    }

    public String getRentalPrice() {
        return rentalPrice;
    }

    public void setRentalPrice(String rentalPrice) {
        this.rentalPrice = rentalPrice;
    }

    public List<PublicAttrEntity> getAttributeList() {
        return attributeList;
    }

    public void setAttributeList(List<PublicAttrEntity> attributeList) {
        this.attributeList = attributeList;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<String> getPictures() {
        return pictures;
    }

    public void setPictures(List<String> pictures) {
        this.pictures = pictures;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

//    public String getProvinceName() {
//        return provinceName;
//    }
//
//    public void setProvinceName(String provinceName) {
//        this.provinceName = provinceName;
//    }
//
//    public String getProvinceNo() {
//        return provinceNo;
//    }
//
//    public void setProvinceNo(String provinceNo) {
//        this.provinceNo = provinceNo;
//    }
//
//    public String getCityName() {
//        return cityName;
//    }
//
//    public void setCityName(String cityName) {
//        this.cityName = cityName;
//    }
//
//    public String getCityNo() {
//        return cityNo;
//    }
//
//    public void setCityNo(String cityNo) {
//        this.cityNo = cityNo;
//    }
//
//    public String getDistrictName() {
//        return districtName;
//    }
//
//    public void setDistrictName(String districtName) {
//        this.districtName = districtName;
//    }
//
//    public String getDistrictNo() {
//        return districtNo;
//    }
//
//    public void setDistrictNo(String districtNo) {
//        this.districtNo = districtNo;
//    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getNegotiable() {
        return negotiable;
    }

    public void setNegotiable(String negotiable) {
        this.negotiable = negotiable;
    }

    public String getPriceUnitName() {
        return priceUnitName;
    }

    public void setPriceUnitName(String priceUnitName) {
        this.priceUnitName = priceUnitName;
    }

    public int getIdentity() {
        return identity;
    }

    public void setIdentity(int identity) {
        this.identity = identity;
    }

//    public String getTaskAddr() {
//        return taskAddr;
//    }
//
//    public void setTaskAddr(String taskAddr) {
//        this.taskAddr = taskAddr;
//    }

//    public void setAddressDetail(String addressDetail) {
//        this.addressDetail = addressDetail;
//    }

    public void setServiceArea(String serviceArea) {
        this.serviceArea = serviceArea;
    }

//    public String getLatitude() {
//        return latitude;
//    }
//
//    public void setLatitude(String latitude) {
//        this.latitude = latitude;
//    }
//
//    public String getLongitude() {
//        return longitude;
//    }
//
//    public void setLongitude(String longitude) {
//        this.longitude = longitude;
//    }

    public String getCustomerServiceId() {
        return customerServiceId;
    }

    public void setCustomerServiceId(String customerServiceId) {
        this.customerServiceId = customerServiceId;
    }

    public String getNeedInvoice() {
        return needInvoice;
    }

    public void setNeedInvoice(String needInvoice) {
        this.needInvoice = needInvoice;
    }

    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

    public String getTariff() {
        return tariff;
    }

    public void setTariff(String tariff) {
        this.tariff = tariff;
    }

    public String getWorkStartTime() {
        return workStartTime;
    }

    public void setWorkStartTime(String workStartTime) {
        this.workStartTime = workStartTime;
    }

    public String getWorkEndTime() {
        return workEndTime;
    }

    public void setWorkEndTime(String workEndTime) {
        this.workEndTime = workEndTime;
    }

    public String getCustomerServiceName() {
        return customerServiceName;
    }

    public void setCustomerServiceName(String customerServiceName) {
        this.customerServiceName = customerServiceName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDepartmentNo() {
        return departmentNo;
    }

    public void setDepartmentNo(String departmentNo) {
        this.departmentNo = departmentNo;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getUpdateUserNo() {
        return updateUserNo;
    }

    public void setUpdateUserNo(String updateUserNo) {
        this.updateUserNo = updateUserNo;
    }

    public String getBrandNo() {
        return brandNo;
    }

    public void setBrandNo(String brandNo) {
        this.brandNo = brandNo;
    }

    public String getHasOperator() {
        return hasOperator;
    }

    public void setHasOperator(String hasOperator) {
        this.hasOperator = hasOperator;
    }

    public String getCategoryType() {
        return categoryType;
    }

    public void setCategoryType(String categoryType) {
        this.categoryType = categoryType;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public LocationBean getLocation() {
        return location;
    }

    public void setLocation(LocationBean location) {
        this.location = location;
    }

    public List<PriceSetEntity> getPriceList() {
        return priceList;
    }

    public void setPriceList(List<PriceSetEntity> priceList) {
        this.priceList = priceList;
    }

    public String getSupportTransport() {
        return supportTransport;
    }

    public void setSupportTransport(String supportTransport) {
        this.supportTransport = supportTransport;
    }

    public String getAsideNum() {
        return asideNum;
    }

    public void setAsideNum(String asideNum) {
        this.asideNum = asideNum;
    }

    public static class VipPrice{
        private String durationUnitNo;
        private String durationUnitName;
        private double maxPrice;

        public String getDurationUnitNo() {
            return durationUnitNo;
        }

        public void setDurationUnitNo(String durationUnitNo) {
            this.durationUnitNo = durationUnitNo;
        }

        public String getDurationUnitName() {
            return durationUnitName;
        }

        public void setDurationUnitName(String durationUnitName) {
            this.durationUnitName = durationUnitName;
        }

        public double getMaxPrice() {
            return maxPrice;
        }

        public void setMaxPrice(double maxPrice) {
            this.maxPrice = maxPrice;
        }
    }
}
